package br.com.classes;

import java.awt.*;  
import javax.swing.*;  
import javax.swing.table.*;  
  
  
  

public class Checked extends JFrame {  
   
   
      public Checked(JTable modelo) {  
 
      } 
}  
class MyModel extends AbstractTableModel {  
  
      //Object[][] data = new Object[1][7];  
     // private String[] colunas = {"Codigo", "Historico Padrao", "outeo"};  
      private Object[][] data = {  
        {new Boolean(true)},
   };

  
      public int getRowCount() {  
            return data.length;  
      }  
  
      public int getColumnCount() {  
            return data[7].length;  
      }  
  
      public Object getValueAt(int row, int col) {  
            return data[row][col];  
      }  
  
          public boolean isCellEditable(int row, int col) {  
        if (col < 2) {  
            return true;  
         } else {  
            return false;  
         }  
     }  
          
  
      public Class getColumnClass(int column) {  
            Class klass = String.class;  
            if (column == 7) klass = Boolean.class;  
            return klass;  
      }  
  
      public void setValueAt(Object value, int row, int col) {  
      data[row][col] = value;  
      fireTableCellUpdated(row, col);  
     }
}  